package com.fuyu.common.model;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.util.ArrayList;
import java.util.List;

/**
 * 通用树节点
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class TreeNodeVO {

    /**
     * 唯一标识
     */
    private Long id;


    @JsonIgnore
    private Long parentId;

    /**
     * 标签名
     */
    private String label;

    /**
     * 子级节点
     */
    @Builder.Default
    private List<TreeNodeVO> children = new ArrayList<>();


}


